<?php

namespace App\Enums;

use BenSampo\Enum\Enum;

/**
 * @method static static OptionOne()
 * @method static static OptionTwo()
 * @method static static OptionThree()
 */
final class ReturnChannel extends Enum
{
    const BIDDING = 0;
    const ONE = 1;
    const TWO = 2;
    const OPEN = 3;
    const OTHER = 4;


    public static function getDescription(mixed $value): string
    {
        return match ($value) {
            self::BIDDING => '竞价',
            self::ONE => '一区',
            self::TWO => '二区',
            self::OPEN => '公海',
            self::OTHER => '其他',
            default => self::getKey($value),
        };
    }
}
